package com.yy.wga.admin.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.wga.admin.service.pojo.AdminUserDO;
import com.yy.wga.mp.module.admin.request.AdminUserIoginRequest;
import com.yy.wga.mp.module.admin.request.AdminUserPageRequest;
import com.yy.wga.mp.module.admin.request.AdminUserSaveRequest;
import com.yy.wga.mp.module.admin.request.AdminUserUpdateStatusRequest;
import com.yy.wga.mp.module.admin.response.AdminUserInfoResponse;
import com.yy.wga.mp.module.admin.response.AdminUserPageResponse;

/**
 * 用户信息(AdminUser)表服务接口
 *
 * @author guochao
 * @since 2022-11-01 19:08:37
 */
public interface AdminUserService extends IService<AdminUserDO> {
    /**
     * 登录
     * @param request 登录请求
     * @return 登录用户信息
     */
    AdminUserInfoResponse login(AdminUserIoginRequest request);

    /**
     * 退出登录
     */
    void logout();

    /**
     * 分页
     * @param request
     * @return
     */
    PageBean<AdminUserPageResponse> pageData(AdminUserPageRequest request);

    /**
     * 修改状态
     * @param request
     */
    void updateStatus(AdminUserUpdateStatusRequest request);

    /**
     * 保存用户
     * @param request
     */
    void saveUser(AdminUserSaveRequest request);

    /**
     * 删除
     * @param id
     */
    void delUser(Long id);
}
